<?php
namespace app\Logic\Layui\Service;

use app\Logic\Factory;
use app\Logic\Layui\ServiceProviders\AdminUser;
use app\Logic\Logic;
use Illuminate\Support\Facades\DB;
use Validator;

class AdminLogout extends Logic implements ServiceInterface
{
    public $app;

    public function __construct(AdminUser $app)
    {
        $this->app = $app;
    }


    public function logout()
    {
        session(['adminId' => null]);
        return $this->success();
    }
}